<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>JS数据类型</title>
</head>
<body>
<script>

    //1布尔类型
    var x = true;
    var y = false;

    //2.创建数组
    var cars = new  Array();

    cars[0] = ["福特"];
    cars[1] = ["大众"];
    cars[2] = ["尼桑"];


    var cars1 = ["福特","大众","尼桑"];

    console.log(cars);
    console.log(cars1);


    //3.对象

    var person = {"age":18,"name":"xingweixin","height":172};
    console.log(person);

    var name = person.name;
    console.log("---------"+name);







</script>



</body>
</html>